<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAlLxIM_9xUWb-av-TRadQDBSDF2FWeHsIIHJrBxeKbeRSCPpQXRTLWtefYZhl8fuzOJGTPSP5JKMlSg"
      type="text/javascript"></script>
    <script type="text/javascript">

    //<![CDATA[

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(38.21731210531513, -85.75876235961914), 16);
	map.setMapType(G_HYBRID_MAP);
	map.addControl(new GSmallMapControl());

/*
	var loc_ekstrom = new GPolygon.fromEncoded({
  	 polylines: [
  	 {points: "{bghFjcmjOoEYTuC",
    	 levels: "BBB",
         color: "#0000ff",
         opacity: 0.7,
     	 weight: 3,
     	 numLevels: 18,
     	 zoomFactor: 2},
	 {points: "uhghFz}ljOdEXKtC",
    	 levels: "BBB",
         color: "#0000ff",
         opacity: 0.7,
     	 weight: 3,
     	 numLevels: 18,
     	 zoomFactor: 2}],
  	 fill: true,
  	 color: "#0000ff",
  	 opacity: 0.4,
 	 outline: true
	});
*/
 
        var loc_sac = new GPolygon([
	 new GLatLng(38.21657875037409, -85.756756067276),
	 new GLatLng(38.21810867213549, -85.75649857521057),
	 new GLatLng(38.21802859438379, -85.75557589530945),
	 new GLatLng(38.21876193471268, -85.7554578781128),
	 new GLatLng(38.218728218078034, -85.75497508049011),
	 new GLatLng(38.21833626105392, -85.75451910495758),
	 new GLatLng(38.217097157218774, -85.75473368167877),
	 new GLatLng(38.21697071686552, -85.75581192970276),
	 new GLatLng(38.216469167966586, -85.75592994689941),
	 new GLatLng(38.21657875037409, -85.756756067276)
	], "#f33f00", 5, 1, "#ff0000", 0.2);


	var encodedPoints = "{bghFjcmjOuEYL}CnE^GvC";
        var encodedLevels = "BBBBB";
 
        var loc_ekstrom = new GPolyline.fromEncoded({
		color: "#3333cc",
		weight: 10,
		points: encodedPoints,
		levels: encodedLevels,
		zoomFactor: 32,
		numLevels: 4
	});

	
/*
	var loc_ekstrom = new GPolygon([
   	 new GLatLng(38.21633429708464, -85.76074719429016),
	 new GLatLng(38.217370970109506, -85.76055407524109),
	 new GLatLng(38.217261529349585, -85.75979232788086),
	 new GLatLng(38.21626672109348, -85.7599425315857),
	 new GLatLng(38.21633429708464, -85.76074719429016)
	], "#f33f00", 5, 1, "#ff0000", 0.2);
*/
	GEvent.addListener(loc_sac, 'click', function() {
		alert("You clicked on the SAC.");
	});

	GEvent.addListener(loc_ekstrom, 'click', function() {
		alert("You clicked on Ekstrom Library.");
	});
/*	
	GEvent.addListener(loc_ekstrom, 'mouseover', function(){
		loc_ekstrom.setStrokeStyle(GPolyStyleOptions("339966",3,1));
		alert("You clicked on Ekstrom Library.");
		
	});
*/		

	map.addOverlay(loc_sac);
	map.addOverlay(loc_ekstrom);
      }
    }

    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
    <h5>Choose Realm: </h5>
    <div id="map" style="width: 500px; height: 300px"></div>
  </body>
</html>
